{include header.tpl}
{include nav.tpl}
{include search.tpl}

{//hook tpl_index_index_start.htm}

<div class="checker_nav">
	<ul class="checker_nav_list">
		<li><a id="newtalk" href="#" class="checher_checked" onclick="checker_cheked(this);return false;">最新帖子</a></li>
		<li><a id="digesttalk" href="#" onclick="checker_cheked(this);return false;">精华帖子</a></li>
		<li><a id="hottalk" href="#" onclick="checker_cheked(this);return false;">热门帖子</a></li>
	</ul>
</div>

<div id="tabbodynewtalk">
{//hook tpl_index_index_stick_talks_before.htm}
{if !empty($all_sticks)}
	{foreach $all_sticks as $v}
		{//hook tpl_index_index_stick_talks_list_before.htm}
	<div class="list">
		<a href="index.php?index-talk-tid-{$v['tid']}.htm">
				<span class="ding">[顶]</span>{if $v['isdigest']}<span class="jing">[精]</span>{/if}
				{$v['title']}({$v['tj']}/{$v['rtj']})</a>
	</div>
		{//hook tpl_index_index_stick_talks_list_after.htm}
	{/foreach}
{/if}
{//hook tpl_index_index_stick_talks_after.htm}

{if empty($talks)}
	<div class="list">暂无帖子</div>
{else}
	{foreach $talks as $v}
		{//hook tpl_index_index_talk_list_before.htm}
	<div class="list">
		<a href="index.php?index-talk-tid-{$v['tid']}.htm">
		{if $v['isdigest']}<span class="jing">[精]</span>{/if}
		{$v['title']}({$v['tj']}/{$v['rtj']})</a>
	</div>
		{//hook tpl_index_index_talk_list_after.htm}
	{/foreach}
{/if}

{//hook tpl_index_index_forum_list_start.htm}
</div>
<div id="tabbodydigesttalk">精帖加载中...</div>
<div id="tabbodyhottalk">热帖加载中...</div>
<script src="jy_src/js/ajax.js?{echo $jy_version_of_js;}"></script>
<script src="jy_src/js/loadindex.js?{echo $jy_version_of_js;}"></script>

<div class="title">版块列表</div>
{if empty($forums)}
	<div class="list">暂无版块</div>
{else}
    <ul class="b-list">
	{foreach $forums as $v}
		{//hook tpl_index_index_forum_list_before.htm}
	<li><a href="index.php?index-forum-fid-{$v['id']}.htm">{$v['name']} ({$v['tj']})</a></li>
		{//hook tpl_index_index_forum_list_after.htm}
	{/foreach}
	</ul>
{/if}
{include ly.tpl}
{include footer.tpl}